
			$(function() {
				$(".panel-group").on("click", "a", function() {
					var sId = $(this).data("id"); //获取data-id的值
					window.location.hash = sId; //设置锚点
					loadInner(sId);
				});
				$(".umg").on("click", "li", function() {
					var sId = $(this).data("id"); //获取data-id的值
					window.location.hash = sId; //设置锚点
					loadInner(sId);
				});

				function loadInner(sId) {
					var sId = window.location.hash;
					var pathn, i;
					switch(sId) {
						//              	首页
						case "#first1":
							pathn = "first1.html";
							i = 0;
							break;　　
							//              	查看类型
						case "#detailType":
							pathn = "detailType.html";
							i = 1;
							break;

							//                      发布公告　　　　　
						case "#pubishNotice":
							pathn = "pubishNotice.html";
							i = 2;
							break;
							//                      发布比赛信息
						case "#publishMatchInfo":
							pathn = "publishMatchInfo.html";
							i = 3;
							break;
							//                        发布比赛资讯
						case "#publishMatchNews":
							pathn = "publishMatchNews.html";
							i = 4;
							break;　　　　

							//                      查看比赛信息
						case "#detailMatchInfo":
							pathn = "detailMatchInfo.html";
							i = 5;
							break;
							//                      添加获奖信息
						case "#addAwardInfo":
							pathn = "addAwardInfo.html";
							i = 6;
							break;　　
							//                      查看获奖信息
						case "#detailAwardInfo":
							pathn = "detailAwardInfo.html";
							i = 7;
							break;　　
							//                      查看公告
						case "#detailNotice":
							pathn = "detailNotice.html";
							i = 8;
							break;
							//						个人信息
						case "#detailPersonalInfo":
							pathn = "detailPersonalInfo.html";
							i = 9;
							break;　　
							//                         修改密码
						case "#changePassword":
							pathn = "changePassword.html";
							i = 10;
							break;　　
							//							查看比赛资讯
						case "#detailMatchNews":
							pathn = "detailMatchNews.html";
							i = 11;
							break;
							//						   查看报名信息
						case "#detailEnter":
							pathn = "detailEnter.html";
							i = 12;
							break;
							
							//						   查看用户信息
						case "#detailUser":
							pathn = "detailUser.html";
							i = 13;
							break;

					}
					$("#con").load(pathn); //加载相对应的内容
					$(".panel-group a").eq(i).addClass("c").siblings().removeClass("c"); //当前列表高亮
				}
				var sId = window.location.hash;
				loadInner(sId);
			});
